var UnicodeImageOutputModifier = OutputModifier.extend({
	constructor: function(ime)
	{
		this.base(ime);
	},
	ModifierName: function()
	{
		return 'UnicodeImageOutputModifier';
	},
	Modify: function(str)
	{
		var i,len,utf16;

		for(i=0;i<str.length;) {
			len = lib.utf16charlen(str.substr(i));
			utf16 = lib.chartoutf16(str.substr(i));
			Debug.trace(1,"UnicodeImageOutputModifier: u+%x <a href=\"http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=%x\"><img src=\"http://www.unicode.org/cgi-bin/refglyph?24-%x\" border=\"0\" /></a>",utf16,utf16,utf16);
			i += len;
		}
		return str;
	}
});
